
#ifndef RECORD_H
#define RECORD_H

#include <myhbox.h>
class QSocketNotifier;
class QFile;
class QToolButton;
class QStatusBar;
class QString;
class QLabel;
class TabWidget;
class Timing;

class Record:public MyHBox
{
    Q_OBJECT			///
  public:
    Record (QWidget * parent = 0, const char *name = 0);
     ~Record ();
    QToolButton *buttonrecord;
    Timing *timing;
    QString channelurl;
    QString channelname;
    QString channeltype;
    bool flagMenu;

  private:
      TabWidget * tabwidget;
    QSocketNotifier *snrecord;
    QFile *recordfp;
    QStatusBar *statusbar;
    QTimer *launchtimer;
    QTimer *quittimer;

    private slots:		///
    void streamReady (int fd);
    void launchRecord ();
    void onButtonRecordToggled (bool);
    void quitRecord ();
    void removeTab ();
};

#endif
